#include "../include/recursion.h"

#include <stdio.h>

void hanoi( int n, char x, char y, char z )
{
    if ( n == 0 ) {
        return;
    }

    hanoi( n - 1, x, z, y );
    move( n, x, z );
    hanoi( n - 1, y, x, z );
}

void move( int n, char x, char y )
{
    static int nCount = 0;
    printf( "%d Step: move %d from %c to %c.\n", ++nCount, n, x, y );
}
